package com.shang.sync.demo;

public class Cabinet {

    //柜子中存放的数字
    private int number;

    public int getNumber() {
        return number;
    }

    public synchronized void setNumber(int number) {
        this.number = number;
    }
}
